package com.erp.erp_dao.Customer2Contact;

import com.erp.erp_entitys.Customer2Contact.Customer2ContactEntity;
import com.erp.erp_entitys.Customer2Contact.Customer2ContactExample;
import com.erp.erp_entitys.Customer2Contact.Customer2ContactVoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ICustomer2ContactDAO {
    long countByExample(Customer2ContactExample example);

    int deleteByExample(Customer2ContactExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Customer2ContactEntity record);

    int insertSelective(Customer2ContactEntity record);

    List<Customer2ContactEntity> selectByExample(Customer2ContactExample example);
    List<Customer2ContactVoEntity> query(Map map);
    List<Customer2ContactVoEntity> query2(Map map);

    Customer2ContactEntity selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Customer2ContactEntity record, @Param("example") Customer2ContactExample example);

    int updateByExample(@Param("record") Customer2ContactEntity record, @Param("example") Customer2ContactExample example);

    int updateByPrimaryKeySelective(Customer2ContactEntity record);

    int updateByPrimaryKey(Customer2ContactEntity record);

    List<Customer2ContactEntity> selectByDim(String dim);
}